package me.younian.transmit;

import org.apache.log4j.Logger;

/**
 * Main
 */
public class App {
    private static final Logger logger = Logger.getLogger(App.class);

    public static void main(String[] args) {
        /*ApplicationContext apc = new ClassPathXmlApplicationContext("applicationContext.xml", "quartz.xml");

        SubscribeServices subscribeService = (SubscribeServices) apc.getBean("subscribeService");
        subscribeService.subscribe();*/

        SocketServerClient socketServerClient = new SocketServerClient();
        Thread threadClient = new Thread(socketServerClient);
        threadClient.start();

        SocketServerUser socketServerUser = new SocketServerUser();
        Thread threadUser = new Thread(socketServerUser);
        threadUser.start();

        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        (new TransPortData(socketServerUser.getSocket(), socketServerClient.getSocket(), socketServerClient, "1")).start();
    }
}
